#include <stdio.h>
#include <stdlib.h>

void sayBay() {
    printf("程序结束前回调");
}

int main(int argc, char *args[]) {
    atexit(sayBay);
    printf("%d\n", argc);
    for (int i = 0; i < argc; i++) {
        printf("%s\n", args[i]);
    }
    //exit(EXIT_SUCCESS);
    //exit(EXIT_FAILURE);
}